﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GalaxyPresident
{
    public abstract class OwnEntity : PlanetEntity
    {
        public override string getObjectName()
        {
            return "OwnEntity";
        }


        public OwnEntity(Planet planet)
            : base(planet)
        {
        }

        protected override void updateSpriteSColor()
        {
            if(_planetOwner != null && _planetOwner.TeamOwner != null)
                sprite_s.Color = _planetOwner.TeamOwner.TeamColor;
        }

        public override string getInfoString()
        {
            return "Health  : " + _healthPoint.ToString()
                + "\nDeffense: " + (_defense * 100).ToString() + @"%";
        }
    }
}
